  <table class="edit" style="width: 100%;" border="1" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <th>Omschrijving</th>
        <th class="price">Aantal</th>
        <th class="price">Prijs</th>
        <th class="price">BTW</th>
        <th class="price">Totaal</th>
        <th class="options">
          <img style="width: 22px; height: 22px;" alt="Toevoegen" title="Artikel toevoegen" src="images/add.png">
        </th>
      </tr>
<?php	for( $i=0 ; $i<$order->purchases() ; $i++ ) {	?>
      <tr>
        <td><input type="text" name="description[<?php echo $i; ?>]" value="<?php echo $order->getPurchase($i)->getDescription(); ?>"></td>
        <td class="price"><input type="text" name="amount[<?php echo $i; ?>]" value="<?php echo $order->getPurchase($i)->getAmount(); ?>"></td>
        <td class="price">&#8364;<input type="text" name="price[<?php echo $i; ?>]" value="<?php echo $order->getPurchase($i)->getPrice(); ?>"></td>
        <td class="price"><input type="text" name="vat[<?php echo $i; ?>]" value="<?php echo $order->getPurchase($i)->printVat(); ?>"></td>
        <td class="price">&#8364; <?php echo $order->getPurchase($i)->printSubtotal(); ?></td>
        <td class="options"><a href="javascript:removePurchase( <?php echo $i; ?> );"><img src="images/remove.png" border="0" /></td>
      </tr>
<?php	}	?>
      <tr>
        <td class="empty" colspan="2"> </td>
        <td colspan="2"><b>Subtotaal:</b></td>
        <td class="price">&#8364; <?php echo $order->printSubtotal(); ?></td>
        <td><a href="javascript:newPurchase();"><img src="images/add.png" border="0" /></a></td>
      </tr>
<?php 	$vats = $order->getVatPerVat();
	foreach( $vats as $vat => $total )
	{
?>
      <tr>
        <td class="empty" colspan="2"> </td>
        <td colspan="2">Totaal (<?php echo $vat; ?>):</td>
        <td class="price">&#8364; <?php echo $total; ?></td>
        <td></td>
      </tr>
<?php } ?>
<?php if( get_class($order) == "PurchaseOrder" ){ ?>
      <tr>
        <td class="empty" colspan="2"> </td>
        <td colspan="2">Voorschot: </td>
        <td class="price">&#8364;<input type="text" name="advance" value="<?php echo $order->getAdvance(); ?>"></td>
        <td></td>
      </tr>
<?php } ?>
      <tr>
        <td class="empty" colspan="2"></td>
        <td colspan="2"><b>Eindtotaal:</b></td>
        <td class="price">&#8364; <?php echo $order->printTotal(); ?></td>
        <td></td>
      </tr>
    </tbody>
  </table>
